package com.ldatum.crm.service;

import java.util.List;

import com.ldatum.crm.domain.TContacts;
import com.ldatum.crm.domain.TCustomer;

public interface TCustomerService {
	void add(TCustomer customer) throws Exception;
	void delete(TCustomer customer,int id) throws Exception;
	void update(TCustomer customer,int id) throws Exception;
	TCustomer findById(Class<TCustomer> clazz,int id) throws Exception;
	List<TCustomer> myCustomer(Class<TCustomer> clazz ,String proprietor) throws Exception;
	String generateNo() throws Exception;
	void deletes(TCustomer customer, String ids) throws Exception;
	List<TCustomer> publicCustomer(Class<TCustomer> class1) throws Exception;
	List<TCustomer> sharedCustomer(Class<TCustomer> class1) throws Exception;
	void save(TCustomer customer, TContacts contact) throws Exception;
}
